<!-- php:$title = $page_rs.title.'_会员中心' -->
<!-- include tpl=header title=$title menutitle=会员中心 -->
<section class="container"><div class="mt-3"><!-- include tpl=block/breadcrumb --></div></section>
<section class="container">
	<div class="row">
		<div class="col-sm-3">
			<!-- include tpl=block/usercp_nav -->
		</div>
		<div class="col-sm-9">
			<div class="card">
				<div class="card-header">{$page_rs.title}</div>
				<table class="table">
					<thead>
						<tr>
							<th>ID</th>
							<th>{$page_rs.alias_title ? $page_rs.alias_title : '主题'}</th>
							<th>状态</th>
							<th>操作</th>
						</tr>
					</thead>
					<tbody>
						<!-- loop from=$rslist key=$key value=$value id=$tmpid -->
						<tr>
							<td>{$value.id}</td>
							<td>
								<a href="{$value.url}" target="_blank">{$value.title}</a><br />
								<small class="text-muted">发布时间：{func time_format $value.dateline}，查看次数：{$value.hits}</small>
							</td>
							<td><!-- if $value.status -->正常<!-- else --><span class="text-danger">审核中</span><!-- /if --></td>
							<td><a href="{url ctrl=post func=edit id=$value.id/}" class="btn btn-warning" target="_blank">编辑</a></td>
						</tr>
						<!-- /loop -->
					</tbody>
				</table>
			</div>
			<div class="p-4 m-4 text-center">
				<a href="{url ctrl=post id=$id/}" target="_blank" class="btn btn-primary">添加</a>
			</div>
			<!-- include tpl=block/pagelist -->
		</div>
	</div>
</section>


<!-- include tpl=footer -->